<?php

use app\common\model\Plugin;
use think\migration\Seeder;

class ChangePlugin extends Seeder
{
    /**
     * Run Method.
     *
     * Write your database seeder using this method.
     *
     * More information on writing seeders is available here:
     * http://docs.phinx.org/en/latest/seeding.html
     */
    public function run()
    {
//        $aliPay = Plugin::where('id', 2)->find();
//        $aliPay->name = '支付宝支付';
//        $aliPay->scene = 3;
//        $aliPay->save();
//
//        $aliPay = Plugin::where('id', 8)->find();
//        $aliPay->name = '微信支付';
//        $aliPay->desc = 'APP微信支付';
//        $aliPay->scene = 3;
//        $aliPay->save();

        $aliPay = Plugin::where('id', 16)->find();
        $aliPay->name = '抖音支付';
        $aliPay->save();
    }
}